"use strict";

const CRLF = /\r\n/;

const fs = require("node:fs");
const path = require("node:path");
const rl = require("node:readline");

const targetFile = fs.createReadStream(path.resolve(__dirname, "../empty.js"));
const i = rl.createInterface({
  input: targetFile,
});

i.on("line", (line) => {
  console.log(CRLF.test(line));
});
i.on("close", () => {
  console.log("done");
});
// const empty = fs.readFile(path.resolve(__dirname,'./empty.js'), 'utf8', (err, data) => {
//   if (err) {
//     console.error(err);
//     return;
//   }
//   text = data
// });
/**
 * @param {string} str
 * @returns {RegExp}
 */
const prepareRegex = (str) => new RegExp(`"\\*\\s*${str}\\w`, "i");
const atController = /\*\s*@ngController\w/;
const atService = /@ngService/;
const atDirective = /@ngDirective/;
const atFilter = /@ngFilter/;
const atComponent = /@ngComponent/;
